package com.lock.lock_common.api.function;

import com.lock.lock_common.dto.Result;
import com.lock.lock_common.pojo.Function;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface FunctionApi {
    @RequestMapping("allFunction")
    Result<List<Function>> allFunction();

    @RequestMapping("selectFunctionByUserId")
    Result<Map<String,Object>> selectFunctionByUserId(@RequestParam Integer userId);

    @RequestMapping("addFunctionByRoleId")
    int addFunctionByRoleId(Integer roleId);
}
